package edu.sctu.practice.class02.hujie.online_classes_practice.imooc.Java_IO.class4to3;

import edu.sctu.practice.class02.hujie.online_classes_practice.imooc.Java_IO.class4to1.IOUtil;

import java.io.File;
import java.io.IOException;

/**
 * copy文件
 * Created by hp on 2015/12/22.
 */
public class IOUtilTest3 {
    public static void main(String[] args) throws IOException {
        try {
            long start = System.currentTimeMillis();
            IOUtil.copyFile(new File("F:\\桌面文件\\慕课网笔记\\" +
                    "文件传输基础IO流\\1.txt"), new File("F:\\桌面文" +
                    "件\\慕课网笔记\\文件传输基础IO流\\1s.txt"));
            long end = System.currentTimeMillis();
            System.out.println("用时：" + (end - start));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
